﻿using MyProject.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyProject.Entities.EmploymentContract
{
    public class EmploymentContract
    {
        [MyTitle("Номер")]
        public int? id { get; set; }

        [Required(ErrorMessage = "Поле является обязательным"), MyTitle("Дата")]
        public DateTime creation_date { get; set; } = DateTime.Now;

        [MyTitle("Дата приема на работу")]
        public DateTime? employment_date { get; set; } = null;
    }
}
